/*
 * Copyright (c) 2024. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package com.neusoft.demo;

import java.lang.reflect.Method;

public class TestMethodAnnotationApp {
    public static void main(String[] args) {
        Class<TestMethodAnnotation> clazz = TestMethodAnnotation.class;
        Method[] declaredMethods = clazz.getDeclaredMethods();
        for (Method method : declaredMethods) {
            MyMethodAnnotation annotation = method.getAnnotation(MyMethodAnnotation.class);
            if (annotation != null) {
                System.out.println("method name: " + method.getName());
                System.out.println("value: " + annotation.value());
                System.out.println("description: " + annotation.description());
            }
        }
    }
}
